package com.jx.springcloud.control;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

@RestController
public class UUIDcontrol {
    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/getUID")
    public String getUIDandServerport(){
       String UID = UUID.randomUUID().toString() ;
       return  "springcloud zookeeper   "+port+"/t" + UID;
    }
}
